<!DOCTYPE html>
<html>
<head lang="en">
  <meta charset="UTF-8">
  <title></title>
  <style>
    div{ border: 1px solid #000000; width:100px; height: 160px;}
    div p{border: 1px solid #999999; width:60px; height: 100px;}
  </style>
  <script src="../G.js"></script>
  <script>
    window.addEventListener("load", function(e){
      console.log(e)
    });
    document.addEventListener("DOMContentLoaded",function () {
      $("a")[0].addEventListener("click",function(e){
        e.preventDefault();
        //e.stopPropagation();
        alert("无法点击");
      },false);
    });
  </script>
</head>
<body>
  <div>
    <p><input type="button" value="查看"/> <a href="http://www.baidu.com">百度</a></p>
  </div>
</body>
</html>